package com.foreverwin.jzymes.production.custcmpln.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.custcmpln.mapper.CustCmplnLogMapper;
import com.foreverwin.jzymes.production.custcmpln.domain.CustCmplnLog;
import com.foreverwin.jzymes.production.custcmpln.service.ICustCmplnLogService;

/**
 * 客诉记录 服务层实现
 * 
 * @author levy
 * @date 2019-06-13
 */
@Service
public class CustCmplnLogServiceImpl implements ICustCmplnLogService
{
	@Autowired
	private CustCmplnLogMapper custCmplnLogMapper;

	/**
     * 查询客诉记录信息
     * 
     * @param handle 客诉记录ID
     * @return 客诉记录信息
     */
    @Override
	public CustCmplnLog selectCustCmplnLogById(String handle)
	{
	    return custCmplnLogMapper.selectCustCmplnLogById(handle);
	}
	
	/**
     * 查询客诉记录列表
     * 
     * @param custCmplnLog 客诉记录信息
     * @return 客诉记录集合
     */
	@Override
	public List<CustCmplnLog> selectCustCmplnLogList(CustCmplnLog custCmplnLog)
	{
	    return custCmplnLogMapper.selectCustCmplnLogList(custCmplnLog);
	}
	
    /**
     * 新增客诉记录
     * 
     * @param custCmplnLog 客诉记录信息
     * @return 结果
     */
	@Override
	public int insertCustCmplnLog(CustCmplnLog custCmplnLog)
	{
	    return custCmplnLogMapper.insertCustCmplnLog(custCmplnLog);
	}
	
	/**
     * 修改客诉记录
     * 
     * @param custCmplnLog 客诉记录信息
     * @return 结果
     */
	@Override
	public int updateCustCmplnLog(CustCmplnLog custCmplnLog)
	{
	    return custCmplnLogMapper.updateCustCmplnLog(custCmplnLog);
	}

	/**
     * 删除客诉记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteCustCmplnLogByIds(String ids)
	{
		return custCmplnLogMapper.deleteCustCmplnLogByIds(ids.split(","));
	}
	
}
